import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
import Index from '../views/Index/index.vue'
const routes: Array<RouteRecordRaw> = [
    {
        path: "/about",
        name: "About",
        component: () =>
            import(/* webpackChunkName: "About" */ "../components/About.vue")
    },
    {
        path: "/",
        name: "Index",
        component:Index
    },
    {
        path: "/login",
        name: "Login",
        component: () =>
            import("../views/login/index.vue")
    }
];

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router;
